home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / PInterfaces / CMMComponent.p < prev    next >
Encoding:
Text File  |  1998-08-17  |  7.7 KB  |  186 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMMComponent.p
  3.  
  4.      Contains:    ColorSync CMM Component API
  5.  
  6.      Version:    Technology:    ColorSync 2.5
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. }
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT CMMComponent;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __CMMCOMPONENT__}
  27. {$SETC __CMMCOMPONENT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC CMMComponentIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33. {$IFC UNDEFINED __QUICKDRAW__}
  34. {$I Quickdraw.p}
  35. {$ENDC}
  36. {$IFC UNDEFINED __COMPONENTS__}
  37. {$I Components.p}
  38. {$ENDC}
  39. {$IFC UNDEFINED __CMAPPLICATION__}
  40. {$I CMApplication.p}
  41. {$ENDC}
  42.  
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48.  
  49. CONST
  50.     CMMInterfaceVersion            = 1;
  51.  
  52. { Component function selectors }
  53. { Required }
  54.     kCMMInit                    = 0;
  55.     kNCMMInit                    = 6;
  56.     kCMMMatchColors                = 1;
  57.     kCMMCheckColors                = 2;
  58.  
  59. { Optional }
  60.     kCMMValidateProfile            = 8;
  61.     kCMMFlattenProfile            = 14;
  62.     kCMMUnflattenProfile        = 15;
  63.     kCMMMatchBitmap                = 9;
  64.     kCMMCheckBitmap                = 10;
  65.     kCMMMatchPixMap                = 3;
  66.     kCMMCheckPixMap                = 4;
  67.     kCMMConcatenateProfiles        = 5;
  68.     kCMMConcatInit                = 7;
  69.     kCMMNewLinkProfile            = 16;
  70.     kCMMGetPS2ColorSpace        = 11;
  71.     kCMMGetPS2ColorRenderingIntent = 12;
  72.     kCMMGetPS2ColorRendering    = 13;
  73.     kCMMGetPS2ColorRenderingVMSize = 17;
  74.     kCMMGetNamedColorInfo        = 70;
  75.     kCMMGetNamedColorValue        = 71;
  76.     kCMMGetIndNamedColorValue    = 72;
  77.     kCMMGetNamedColorIndex        = 73;
  78.     kCMMGetNamedColorName        = 74;
  79.  
  80.  
  81. FUNCTION NCMInit(CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
  82.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  83.     INLINE $2F3C, $0008, $0006, $7000, $A82A;
  84.     {$ENDC}
  85. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  86.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  87.     INLINE $2F3C, $0008, $0000, $7000, $A82A;
  88.     {$ENDC}
  89. FUNCTION CMMatchColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: UInt32): CMError;
  90.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  91.     INLINE $2F3C, $0008, $0001, $7000, $A82A;
  92.     {$ENDC}
  93. FUNCTION CMCheckColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: UInt32; VAR result: LONGINT): CMError;
  94.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  95.     INLINE $2F3C, $000C, $0002, $7000, $A82A;
  96.     {$ENDC}
  97.  
  98. { Optional functions }
  99. FUNCTION CMMValidateProfile(CMSession: ComponentInstance; prof: CMProfileRef; VAR valid: BOOLEAN): CMError;
  100.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  101.     INLINE $2F3C, $0008, $0008, $7000, $A82A;
  102.     {$ENDC}
  103. FUNCTION CMMFlattenProfile(CMSession: ComponentInstance; prof: CMProfileRef; flags: UInt32; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  104.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  105.     INLINE $2F3C, $0010, $000E, $7000, $A82A;
  106.     {$ENDC}
  107. FUNCTION CMMUnflattenProfile(CMSession: ComponentInstance; VAR resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  108.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  109.     INLINE $2F3C, $000C, $000F, $7000, $A82A;
  110.     {$ENDC}
  111. FUNCTION CMMatchBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
  112.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  113.     INLINE $2F3C, $0010, $0009, $7000, $A82A;
  114.     {$ENDC}
  115. FUNCTION CMCheckBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
  116.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  117.     INLINE $2F3C, $0010, $000A, $7000, $A82A;
  118.     {$ENDC}
  119. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
  120.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  121.     INLINE $2F3C, $000C, $0003, $7000, $A82A;
  122.     {$ENDC}
  123. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; {CONST}VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; VAR myBitMap: BitMap; refCon: UNIV Ptr): CMError;
  124.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  125.     INLINE $2F3C, $0010, $0004, $7000, $A82A;
  126.     {$ENDC}
  127. FUNCTION CMConcatInit(CMSession: ComponentInstance; VAR profileSet: CMConcatProfileSet): CMError;
  128.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  129.     INLINE $2F3C, $0004, $0007, $7000, $A82A;
  130.     {$ENDC}
  131. FUNCTION CMNewLinkProfile(CMSession: ComponentInstance; VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
  132.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  133.     INLINE $2F3C, $000C, $0010, $7000, $A82A;
  134.     {$ENDC}
  135. FUNCTION CMMGetPS2ColorSpace(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: UInt32; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  136.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  137.     INLINE $2F3C, $0010, $000B, $7000, $A82A;
  138.     {$ENDC}
  139. FUNCTION CMMGetPS2ColorRenderingIntent(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: UInt32; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  140.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  141.     INLINE $2F3C, $0010, $000C, $7000, $A82A;
  142.     {$ENDC}
  143. FUNCTION CMMGetPS2ColorRendering(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: UInt32; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  144.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  145.     INLINE $2F3C, $0014, $000D, $7000, $A82A;
  146.     {$ENDC}
  147. FUNCTION CMMGetPS2ColorRenderingVMSize(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: UInt32): CMError;
  148.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  149.     INLINE $2F3C, $000C, $0011, $7000, $A82A;
  150.     {$ENDC}
  151. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  152.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  153.     INLINE $2F3C, $000C, $0005, $7000, $A82A;
  154.     {$ENDC}
  155. { Named Color functions }
  156. FUNCTION CMMGetNamedColorInfo(CMSession: ComponentInstance; srcProf: CMProfileRef; VAR deviceChannels: UInt32; VAR deviceColorSpace: OSType; VAR PCSColorSpace: OSType; VAR count: UInt32; prefix: StringPtr; suffix: StringPtr): CMError;
  157.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  158.     INLINE $2F3C, $001C, $0046, $7000, $A82A;
  159.     {$ENDC}
  160. FUNCTION CMMGetNamedColorValue(CMSession: ComponentInstance; prof: CMProfileRef; name: StringPtr; VAR deviceColor: CMColor; VAR PCSColor: CMColor): CMError;
  161.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  162.     INLINE $2F3C, $0010, $0047, $7000, $A82A;
  163.     {$ENDC}
  164. FUNCTION CMMGetIndNamedColorValue(CMSession: ComponentInstance; prof: CMProfileRef; index: UInt32; VAR deviceColor: CMColor; VAR PCSColor: CMColor): CMError;
  165.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  166.     INLINE $2F3C, $0010, $0048, $7000, $A82A;
  167.     {$ENDC}
  168. FUNCTION CMMGetNamedColorIndex(CMSession: ComponentInstance; prof: CMProfileRef; name: StringPtr; VAR index: UInt32): CMError;
  169.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  170.     INLINE $2F3C, $000C, $0049, $7000, $A82A;
  171.     {$ENDC}
  172. FUNCTION CMMGetNamedColorName(CMSession: ComponentInstance; prof: CMProfileRef; index: UInt32; name: StringPtr): CMError;
  173.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  174.     INLINE $2F3C, $000C, $004A, $7000, $A82A;
  175.     {$ENDC}
  176. {$ALIGN RESET}
  177. {$POP}
  178.  
  179. {$SETC UsingIncludes := CMMComponentIncludes}
  180.  
  181. {$ENDC} {__CMMCOMPONENT__}
  182.  
  183. {$IFC NOT UsingIncludes}
  184.  END.
  185. {$ENDC}
  186.